package com.ccg.plat

import com.ccg.plat.entity.RoomBean
import com.google.gson.GsonBuilder
import org.junit.Test

import org.junit.Assert.*

/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * See [testing documentation](http://d.android.com/tools/testing).
 */
class ExampleUnitTest {
    @Test
    fun addition_isCorrect() {
        assertEquals(4, 2 + 2)
    }
    @Test
    fun a1() {
        println("")
        val timestamp = System.currentTimeMillis()
        println("当前时间戳（毫秒）: $timestamp")
        println("")
    }

    @Test
    fun a2() {
        println("")
        println("")
        val mList = buildList<RoomBean> {
            add(RoomBean(tag = "acb", roomUrl = "http://117.72.114.24:8083/xiaohuanger/acb.zip", timeStamp = 1746608334359))
            add(RoomBean(tag = "aqdav1", roomUrl = "http://117.72.114.24:8083/xiaohuanger/aqdav1.zip", timeStamp = 1746608334359))
            add(RoomBean(tag = "aqdav2", roomUrl = "http://117.72.114.24:8083/xiaohuanger/aqdav2.zip", timeStamp = 1746608334359))
            add(RoomBean(tag = "aqdav3", roomUrl = "http://117.72.114.24:8083/xiaohuanger/aqdav3.zip", timeStamp = 1746608334359))
            add(RoomBean(tag = "aqdav4", roomUrl = "http://117.72.114.24:8083/xiaohuanger/aqdav4.zip", timeStamp = 1746608334359))
            add(RoomBean(tag = "aqdtv", roomUrl = "http://117.72.114.24:8083/xiaohuanger/aqdtv.zip", timeStamp = 1746608334359))
            add(RoomBean(tag = "buzz", roomUrl = "http://117.72.114.24:8083/xiaohuanger/buzz.zip", timeStamp = 1733280498785))
            add(RoomBean(tag = "ck", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ck.zip", timeStamp = 1733280498785))
            add(RoomBean(tag = "hbsy", roomUrl = "http://117.72.114.24:8083/xiaohuanger/hbsy.zip", timeStamp = 1746608334359))
            add(RoomBean(tag = "hsex", roomUrl = "http://117.72.114.24:8083/xiaohuanger/hsex.zip", timeStamp = 1746608334359))
            add(RoomBean(tag = "imadou", roomUrl = "http://117.72.114.24:8083/xiaohuanger/imadou.zip", timeStamp = 1746608334359))
            add(RoomBean(tag = "langyou", roomUrl = "http://117.72.114.24:8083/xiaohuanger/langyou.zip", timeStamp = 1733280498785))
            add(RoomBean(tag = "langyoueight", roomUrl = "http://117.72.114.24:8083/xiaohuanger/langyoueight.zip", timeStamp = 1733280498785))
            add(RoomBean(tag = "langyounine", roomUrl = "http://117.72.114.24:8083/xiaohuanger/langyounine.zip", timeStamp = 1746608334359))
            add(RoomBean(tag = "langyouone", roomUrl = "http://117.72.114.24:8083/xiaohuanger/langyouone.zip", timeStamp = 1746608334359))
            add(RoomBean(tag = "langyouseven", roomUrl = "http://117.72.114.24:8083/xiaohuanger/langyouseven.zip", timeStamp = 1733280498785))
            add(RoomBean(tag = "langyouthree", roomUrl = "http://117.72.114.24:8083/xiaohuanger/langyouthree.zip", timeStamp = 1733280498785))
            add(RoomBean(tag = "md", roomUrl = "http://117.72.114.24:8083/xiaohuanger/md.zip", timeStamp = 1746608334359))
            add(RoomBean(tag = "langyouthree", roomUrl = "http://117.72.114.24:8083/xiaohuanger/langyouthree.zip", timeStamp = 1733280498785))
            add(RoomBean(tag = "lnalbumqqo", roomUrl = "http://117.72.114.24:8083/xiaohuanger/lnalbumqqo.zip", timeStamp = 1746608334359))
            add(RoomBean(tag = "md", roomUrl = "http://117.72.114.24:8083/xiaohuanger/md.zip", timeStamp = 1733280498785))
            add(RoomBean(tag = "nc", roomUrl = "http://117.72.114.24:8083/xiaohuanger/nc.zip", timeStamp = 1733280498785))
            add(RoomBean(tag = "ya1", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ya1.zip", timeStamp = 1746608334359))
            add(RoomBean(tag = "ya2", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ya2.zip", timeStamp = 1746608334359))

            add(RoomBean(tag = "ydaa", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydaa.zip", timeStamp = 1754707989035))
            add(RoomBean(tag = "ydab0", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydab0.zip", timeStamp = 1754707989035))
            add(RoomBean(tag = "ydab1", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydab1.zip", timeStamp = 1754707989035))
            add(RoomBean(tag = "ydab2", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydab2.zip", timeStamp = 1754707989035))
            add(RoomBean(tag = "ydab3", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydab3.zip", timeStamp = 1754707989035))
            add(RoomBean(tag = "ydab4", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydab4.zip", timeStamp = 1754707989035))
            add(RoomBean(tag = "ydab5", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydab5.zip", timeStamp = 1754707989035))
            add(RoomBean(tag = "ydab6", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydab6.zip", timeStamp = 1754707989035))
            add(RoomBean(tag = "ydab7", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydab7.zip", timeStamp = 1754707989035))
            add(RoomBean(tag = "ydab8", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydab8.zip", timeStamp = 1754707989035))
            add(RoomBean(tag = "ydab9", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydab9.zip", timeStamp = 1754707989035))
            add(RoomBean(tag = "ydab10", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydab10.zip", timeStamp = 1754707989035))
            add(RoomBean(tag = "ydab11", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydab11.zip", timeStamp = 1754707989035))
            add(RoomBean(tag = "ydac0", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydac0.zip", timeStamp = 1754707989035))
            add(RoomBean(tag = "ydac1", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydac1.zip", timeStamp = 1754707989035))
            add(RoomBean(tag = "ydac2", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydac2.zip", timeStamp = 1754707989035))
            add(RoomBean(tag = "ydad0", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydad0.zip", timeStamp = 1754707989035))
            add(RoomBean(tag = "ydad1", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydad1.zip", timeStamp = 1754707989035))
            add(RoomBean(tag = "ydad2", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydad2.zip", timeStamp = 1754707989035))
            add(RoomBean(tag = "ydae", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydae.zip", timeStamp = 1754707989035))
            add(RoomBean(tag = "ydaf0", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydaf0.zip", timeStamp = 1754707989035))
            add(RoomBean(tag = "ydaf1", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydaf1.zip", timeStamp = 1754707989035))
            add(RoomBean(tag = "ydaf2", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydaf2.zip", timeStamp = 1754707989035))
            add(RoomBean(tag = "ydag0", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydag0.zip", timeStamp = 1754707989035))
            add(RoomBean(tag = "ydag1", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydag1.zip", timeStamp = 1754707989035))
            add(RoomBean(tag = "ydag2", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydag2.zip", timeStamp = 1754707989035))
            add(RoomBean(tag = "ydag3", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydag3.zip", timeStamp = 1754707989035))
            add(RoomBean(tag = "ydag4", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydag4.zip", timeStamp = 1754707989035))
            add(RoomBean(tag = "ydag5", roomUrl = "http://117.72.114.24:8083/xiaohuanger/ydag5.zip", timeStamp = 1754707989035))

        }
        println(GsonBuilder().create().toJson(mList))
        println("")
        println("")
    }
    @Test
    fun a3() {
        println("")
        println(402*2.25)
        println(55*2.25)
        println((55*2.25)/2)
        println((402*2.25)-((55*2.25)*7))
//61.875
        //1080
        println(1080-904.5)
        println("")
    }
}